package com.greenline.push.common.pipeline;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.greenline.framework.mursi.web.module.security.AuthorizationModule;
import com.greenline.framework.mursi.web.module.security.AuthorizationResult;
import com.greenline.framework.mursi.web.module.security.AuthorizationResult.ResultEnum;
import com.greenline.guser.client.auth.AbstractAuthorizationValve;
import com.greenline.push.common.cookie.UserCookieUtil;

public class AuthorizationValve extends AbstractAuthorizationValve implements AuthorizationModule {

    @Override
    public Long getUserId(HttpServletRequest request) {
        return UserCookieUtil.getUserId(request);
    }

//    @Override
//    public AuthorizationResult isPermitted(HttpServletRequest request, HttpServletResponse response) {
//        AuthorizationResult result = new AuthorizationResult();
//        // result.setResult(ResultEnum.OK);
//        // Long id = UserCookieUtil.getUserId(request);
//        return result;
//    }

}
